
// Boost Includes ==============================================================
#include <boost/python.hpp>
#include <boost/cstdint.hpp>

// Includes ====================================================================
#include <OpenSG/OSGSHLChunk.h>
#include <OpenSG/OSGSHLChunkBase.h>
#include <OsgPtrHelpers.h>

// Using =======================================================================
using namespace boost::python;

// Declarations ================================================================
namespace  {

BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(osg_SHLChunk_dump_overloads_0_2, dump, 0, 2)

BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(osg_SHLChunk_updateParameters_overloads_2_5, updateParameters, 2, 5)

BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(osg_SHLChunk_activate_overloads_1_2, activate, 1, 2)

BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(osg_SHLChunk_changeFrom_overloads_2_3, changeFrom, 2, 3)

BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(osg_SHLChunk_deactivate_overloads_1_2, deactivate, 1, 2)


}// namespace


// Module ======================================================================
void Export_src_pyste_gen_SHLChunk()
{
    scope* osg_SHLChunkBase_scope = new scope(
    class_< osg::SHLChunkBase, bases< osg::ShaderChunk > , boost::noncopyable >("SHLChunkBase", no_init)
//        .def_readonly("CgFrontEndFieldMask", &osg::SHLChunkBase::CgFrontEndFieldMask)
//        .def_readonly("GLIdFieldMask", &osg::SHLChunkBase::GLIdFieldMask)
//        .def_readonly("MTInfluenceMask", &osg::SHLChunkBase::MTInfluenceMask)
        .def("getClassType", &osg::SHLChunkBase::getClassType, return_internal_reference< 1 >())
        .def("getClassTypeId", &osg::SHLChunkBase::getClassTypeId)
        .def("getType", (osg::FieldContainerType& (osg::SHLChunkBase::*)() )&osg::SHLChunkBase::getType, return_internal_reference< 1 >())
        .def("getType", (const osg::FieldContainerType& (osg::SHLChunkBase::*)() const)&osg::SHLChunkBase::getType, return_internal_reference< 1 >())
        .def("getContainerSize", &osg::SHLChunkBase::getContainerSize)
        //.def("getCgFrontEnd", (bool& (osg::SHLChunkBase::*)() )&osg::SHLChunkBase::getCgFrontEnd, return_value_policy< copy_const_reference >())
        .def("getCgFrontEnd", (const bool& (osg::SHLChunkBase::*)() const)&osg::SHLChunkBase::getCgFrontEnd, return_value_policy< copy_const_reference >())
        //.def("getGLId", (osg::UInt32& (osg::SHLChunkBase::*)() )&osg::SHLChunkBase::getGLId, return_value_policy< copy_const_reference >())
        .def("getGLId", (const osg::UInt32& (osg::SHLChunkBase::*)() const)&osg::SHLChunkBase::getGLId, return_value_policy< copy_const_reference >())
        .def("setCgFrontEnd", &osg::SHLChunkBase::setCgFrontEnd)
        .def("setGLId", &osg::SHLChunkBase::setGLId)
        .def("getBinSize", &osg::SHLChunkBase::getBinSize)
        .def("copyToBin", &osg::SHLChunkBase::copyToBin)
        .def("copyFromBin", &osg::SHLChunkBase::copyFromBin)
        .def("create", &osg::SHLChunkBase::create)
        .def("createEmpty", &osg::SHLChunkBase::createEmpty)
        .def("shallowCopy", &osg::SHLChunkBase::shallowCopy)
        .staticmethod("getClassType")
        .staticmethod("create")
        .staticmethod("createEmpty")
        .staticmethod("getClassTypeId")
    );

    scope().attr("CgFrontEndFieldId") = (int)osg::SHLChunkBase::CgFrontEndFieldId;
    scope().attr("NextFieldId") = (int)osg::SHLChunkBase::NextFieldId;
    scope().attr("GLIdFieldId") = (int)osg::SHLChunkBase::GLIdFieldId;

    delete osg_SHLChunkBase_scope;

    class_< osg::SHLChunk, bases< osg::SHLChunkBase > , boost::noncopyable, osg::SHLChunkRefPtr >("SHLChunk", no_init)
        .def("changed", &osg::SHLChunk::changed)
        .def("dump", &osg::SHLChunk::dump, osg_SHLChunk_dump_overloads_0_2())
        .def("updateParameters", &osg::SHLChunk::updateParameters, osg_SHLChunk_updateParameters_overloads_2_5())
        //.def("activate", &osg::SHLChunk::activate, osg_SHLChunk_activate_overloads_1_2())
        //.def("changeFrom", &osg::SHLChunk::changeFrom, osg_SHLChunk_changeFrom_overloads_2_3())
        //.def("deactivate", &osg::SHLChunk::deactivate, osg_SHLChunk_deactivate_overloads_1_2())
        //.def("switchCost", &osg::SHLChunk::switchCost)
        //.def("addParameterCallback", &osg::SHLChunk::addParameterCallback)
        .def("getFuncUniform1i", &osg::SHLChunk::getFuncUniform1i)
        .def("getFuncUniform2iv", &osg::SHLChunk::getFuncUniform2iv)
        .def("getFuncUniform3iv", &osg::SHLChunk::getFuncUniform3iv)
        .def("getFuncUniform4iv", &osg::SHLChunk::getFuncUniform4iv)
        .def("getFuncUniform1f", &osg::SHLChunk::getFuncUniform1f)
        .def("getFuncUniform2fv", &osg::SHLChunk::getFuncUniform2fv)
        .def("getFuncUniform3fv", &osg::SHLChunk::getFuncUniform3fv)
        .def("getFuncUniform4fv", &osg::SHLChunk::getFuncUniform4fv)
        .def("getFuncUniformMatrix4fv", &osg::SHLChunk::getFuncUniformMatrix4fv)
        .def("getFuncGetUniformiv", &osg::SHLChunk::getFuncGetUniformiv)
        .def("getFuncGetUniformfv", &osg::SHLChunk::getFuncGetUniformfv)
        .def("setClusterId", &osg::SHLChunk::setClusterId)
        .staticmethod("getFuncUniform1f")
        .staticmethod("getFuncUniform4fv")
        .staticmethod("getFuncUniform2iv")
        .staticmethod("setClusterId")
        .staticmethod("getFuncUniform4iv")
        .staticmethod("getFuncUniform1i")
        .staticmethod("getFuncUniformMatrix4fv")
        .staticmethod("getFuncGetUniformiv")
        .staticmethod("getFuncUniform3iv")
        .staticmethod("getFuncGetUniformfv")
        .staticmethod("getFuncUniform2fv")
        .staticmethod("getFuncUniform3fv")
        //.def( self < other< osg::StateChunk >() )
        //.def( self == other< osg::StateChunk >() )
        //.def( self != other< osg::StateChunk >() )
    ;


    register_ptr_to_python<osg::SHLChunkPtr>();
    implicitly_convertible<osg::SHLChunkRefPtr, osg::SHLChunkPtr>();
    implicitly_convertible<osg::SHLChunkPtr, osg::ShaderChunkPtr>();

    def("RefPtr", &pyopensg::ToRefPtr<osg::SHLChunkPtr>);
    def("FCPtr", &pyopensg::ToFcPtr<osg::SHLChunkPtr>);
}

